package com.itheima;

/**
 * 2025/3/24 19:54
 */
public class ForPractice2 {
    public static void main(String[] args) {
        int sum = 0;
        //1 4 7 10
        for (int i = 1; i <= 10; i += 3) {//1 3 5 7 9  如何直接让for循环产生奇数
            sum += i;
        }
        System.out.println(sum);
    }
}
